package cn.iocoder.yudao.module.digital.service.cardchannel.constant;

import java.util.Arrays;
import java.util.List;

/**
 * Description:
 * Author: li
 * Date: 2024/3/6
 */
public interface CardKeyThirdPartyApiConstant {
    int HTTP_STATUS_CODE_DEFAULT = 0;
    int HTTP_STATUS_CODE_EXCEPTION = -1;
    int HTTP_STATUS_CODE_SUCCESS = 200;

    List<Integer> HTTP_STATUS_CODE_REVERSE = Arrays.asList(HTTP_STATUS_CODE_EXCEPTION, 504, 502);

    List<Integer> HTTP_STATUS_CODE_REVERSE2 = Arrays.asList(504, 502);

    List<Integer> HTTP_STATUS_CODE_ALL_ERROR = Arrays.asList(HTTP_STATUS_CODE_DEFAULT, HTTP_STATUS_CODE_EXCEPTION, 504, 502);

    int RETRY_API_RECORD_LIMIT_SIZE = 100;
    int RETRY_TASK_MINUTES_AGO = 60; // minutesAgo

}
